package com.jingmi.jingmiliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingmi.common.utils.PageUtils;
import com.jingmi.jingmiliving.commodity.entity.AttrAttrgroupRelationEntity;
import com.jingmi.jingmiliving.commodity.entity.AttrgroupEntity;
import com.jingmi.jingmiliving.commodity.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 家居商品属性分组
 *
 * @author jingmi
 * @email 2771368705@qq.com
 * @date 2023-10-18 14:36:33
 */
public interface AttrgroupService extends IService<AttrgroupEntity> {

    PageUtils queryByAttrgroupId(Map<String, Object> params,Long attrGroupId);

    PageUtils queryPage(Map<String, Object> params);
    PageUtils queryPage(Map<String, Object> params,Long categoryId);

    void deleteBatches(AttrAttrgroupRelationEntity[] attrAttrgroupRelationEntities);

    PageUtils queryBaseAttrOptional(Map<String, Object> params,Long attrGroupId);


    List<AttrGroupWithAttrsVo> addAttrGroupWithAttrsVo(Long categoryId);
}

